#pragma once
#include <Windows.h>
#include <hidsdi.h>
#include <SetupAPI.h>
#include <stdio.h>
#ifdef HIDContorler
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif


extern "C" DLLEXPORT HANDLE FindHIDDevice(int pid, int vid);
extern "C" DLLEXPORT bool ReadFile_(HANDLE device, char* buffer, int length);